xquery version "1.0" encoding "GBK";
(:: pragma  type="xs:anyType" ::)
declare function ${systemShort}Tran_${pubCode}_Request($xmlHeadReq as element(*),$xmlBodyReq as element(*))
	as element(*) {
	<Transaction>
		 <Header>
		{
			<sysHeader>
				<msgId>{fn:data($xmlHeadReq//msgId)}</msgId>
				<msgDate>{fn:data($xmlHeadReq//msgDate)}</msgDate>
				<msgTime>{fn:data($xmlHeadReq//msgTime)}</msgTime>
				<globalSq>{fn:data($xmlHeadReq//globalSq)}</globalSq>
				<servCd>{fn:data($xmlHeadReq//servCd)}</servCd>
				<operation>{fn:data($xmlHeadReq//operation)}</operation>
				<tranCode>{fn:data($xmlHeadReq//tranCode)}</tranCode>
				<sysCd>{fn:data($xmlHeadReq//sysCd)}</sysCd>
				<serverCd>{fn:data($xmlHeadReq//serverCd)}</serverCd>
				<bizId>{fn:data($xmlHeadReq//bizId)}</bizId>
				<bizType>{fn:data($xmlHeadReq//bizType)}</bizType>
				<orgCd>{fn:data($xmlHeadReq//orgCd)}</orgCd>
				<termCd>{fn:data($xmlHeadReq//termCd)}</termCd>
				<resCd>{fn:data($xmlHeadReq//resCd)}</resCd>
				<resText>{fn:data($xmlHeadReq//resCd)}</resText>
				<bizResCd>{fn:data($xmlHeadReq//bizResCd)}</bizResCd>
				<bizResText>{fn:data($xmlHeadReq//bizResCd)}</bizResText>
				<authId>{fn:data($xmlHeadReq//authId)}</authId>
				<authPara>{fn:data($xmlHeadReq//authPara)}</authPara>
				<authContext>{fn:data($xmlHeadReq//authPara)}</authContext>
				<pinIndex>{fn:data($xmlHeadReq//pinIndex)}</pinIndex>
				<pinValue>{fn:data($xmlHeadReq//pinValue)}</pinValue>
			</sysHeader>
		}
		</Header>
                <Body>
		{
			<request>
				${bizHeader}
				${bizBody}
			</request>
		}
		</Body>
	</Transaction>
};


declare variable $xmlHeadReq as element(*) external;
declare variable $xmlBodyReq as element(*) external;

${systemShort}Tran_${pubCode}_Request($xmlHeadReq,$xmlBodyReq)